<?php

namespace App\Models\Factory;

use App\Helpers\DateUtils;
use App\Helpers\Generator\TokenGenerator;
use App\Helpers\Logger\SLogger;
use App\Helpers\RestResponseFactory;
use App\Helpers\RestUtils;
use App\Helpers\Utils;
use App\Models\AbsModelFactory;
use App\Models\Orm\UserLoanQuota;
use App\Strategies\SexStrategy;
use Carbon\Carbon;
use Illuminate\Support\Facades\Cache;

/**
 * 用户借款额度表工厂
 * Class UserLoanQuotaFactory
 * @package App\Models\Factory
 */
class UserLoanQuotaFactory extends AbsModelFactory
{

    /**
     * 获取用户借款额度
     * @param $userphone
     */
    public static function getUserLoanQuota($userphone)
    {
    	$user = UserLoanQuota::where(['userphone' => $userphone])->first();
        return $user ? : false;
    }	
}